package com.kaifamiao.month03.day0315;

public class Poetry {

    public static void main(String[] args) {
        char[][] poetry = {
                {'春', '眠', '不', '觉', '晓', ','},
                {'处', '处', '闻', '啼', '鸟', '。'},
                {'夜', '来', '风', '雨', '声', ','},
                {'花', '落', '知', '多', '少', '。'}
        };
        for(int i = 0; i < poetry.length; i ++){
            for(int j = 0; j < poetry[i].length; j ++){
                System.out.print(poetry[i][j] + "\t");
            }
            System.out.println();
        }
        for(int i = 0; i < poetry[0].length; i ++){
            for(int j = poetry.length - 1; j >= 0; j --){
                System.out.print(poetry[j][i] + "\t");
            }
            System.out.println();
        }
    }
}

